package com.grz.springbootdemo.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Getter
@Component
@PropertySource(value = "classpath:upload.properties",encoding="utf-8")
public class UploadProperty {

    @Value("${upload.path}")
    private String localPath;

    @Value("${upload.max}")
    private Integer max;
}
